package org.gcb.core.model;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Jason
 */
public class AbilitySet extends HashMap<AbilityType, Ability>{
    private final Set<AbilityType> keys;
    

    public AbilitySet() {
        Set<AbilityType> temp = new HashSet<AbilityType>(6);
        temp.addAll(Arrays.asList(AbilityType.values()));
        for (AbilityType key : temp) {
            put(key, new Ability(key));
        }
        
        keys = Collections.<AbilityType>unmodifiableSet(temp);
    }
}
